package homework3;
//储蓄账号
public class SavingsAccount extends BankAccount {
    private double interestRate;//毛利率

    public SavingsAccount(String accountNumber, String accountHolderName, double balance, double interestRate) {
        super(accountNumber, accountHolderName, balance);
        this.interestRate = interestRate;
    }

    public double getInterestRate() {
        return interestRate;
    }
}
